var socket;
setInterval("connect()", 1000);
function connect(){
	if(!socket || !socket.socket || !socket.isConnect()){
		socket = new socketUtil();
		socket.connection();
		socket.send(0);
		console.log("reconnect " + new Date().getTime());
	}
}

$(document).ready(function() {
	if (top.location != self.location) {
		top.location = self.location.href;
	}
	setTimeout(fixedServerTime, 2000);
	setInterval(updateTimes, 1000);
});